// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
  margin-top: 7vh !important;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-message-box__wrapper::after {
  height: 50%;
}

.el-upload--picture-card {
  width: 100px;
  height: 100px;
  line-height: 100px;
}

.el-upload--picture-card__large {
  width: 120px;
  height: 120px;
  line-height: 120px;
}

.el-upload--picture-card__large .el-upload-list__item {
  width: 100px;
  height: 100px;
  border: none;
  transition: none;
}

.el-upload-list--picture-card .el-upload-list__item {
  width: 100px;
  height: 100px;
  border: none;
  transition: none;
}

.el-checkbox__label {
  padding-left: 5px;
}

.el-checkbox {
  margin-right: 15px;
}

.el-image-viewer__canvas img {
  max-width: 720px !important;
}

.el-timeline-item__node {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.el-timeline-item__node--primary {
  background-color: #fff;
  border: 1px solid #1890ff;
}

.el-upload-list__item {
  position: relative;
}

.el-upload-list__item .master:before {
  content:"主图";
  z-index: 99999;
  display: block;
  font-size: 12px;
  padding: 0 3px;
  position: absolute;
  background: #F56C6C;
  color: #fff;
  line-height: 18px;
  top: 6px;
  left: 6px;
}

.el-upload-list__item .set-master {
  z-index: 99999;
  display: none;
  font-size: 12px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff;
  text-align: center;
  background: #f56c6c;
  line-height: 18px;
  cursor: pointer;
}

.el-upload-list__item:hover .set-master {
  display: block;
}

.el-form {
  margin-bottom: -14px;
}
